package me.silentdoer.socketdebugger.util;

import lombok.experimental.UtilityClass;

import java.net.URL;

/**
 * @author wlq
 * @version 1.0.0
 * @since 19-9-14 上午10:49
 */
@UtilityClass
public class PathUtils {

	/**
	 * TODO
	 * @param relativePath relativePath
	 * @return {@link String}
	 */
	public static String getAbsPathRelateClasspath(String relativePath) {
		System.out.println();
		URL resource = Thread.currentThread().getContextClassLoader().getResource(relativePath);
		assert resource != null;
		return resource.toExternalForm();
	}
}
